import httpRequest from "./base";

interface updataSaveInfoDataDto {
  swjg: string;
  lianlu_code: string;
  error_info: string;
  notice: string;
  delay_time: string;
  feed_back_user: string;
  feed_back: string;
}

// 获取所有链路异常信息列表
export function getAllSaveInfoApi() {
  return httpRequest({
    url: "/saveInfo",
    method: "get",
  });
}

// 更新链路异常信息列表
export function updataSaveInfoApi(data: updataSaveInfoDataDto[]) {
  return httpRequest({
    url: "/saveInfo",
    method: "post",
    data,
  });
}
